import request from '@/utils/request'

// 首次查询出库历史查询列表
export function listFirst(query) {
  return request({
    url: '/system/BACK/first',
    method: 'get',
    params: query
  })
}

// 查询出库历史查询列表
export function listBACK(query) {
  return request({
    url: '/system/BACK/list',
    method: 'get',
    params: query
  })
}

// 查询出库历史查询详细
export function getBACK(PICKINGID) {
  return request({
    url: '/system/BACK/' + PICKINGID,
    method: 'get'
  })
}

// 新增出库历史查询
export function addBACK(data) {
  return request({
    url: '/system/BACK',
    method: 'post',
    data: data
  })
}

// 修改出库历史查询
export function updateBACK(data) {
  return request({
    url: '/system/BACK',
    method: 'put',
    data: data
  })
}

// 删除出库历史查询
export function delBACK(PICKINGID) {
  return request({
    url: '/system/BACK/' + PICKINGID,
    method: 'delete'
  })
}
